%ifndef __NASMX_NETAPI32_INC__
%define __NASMX_NETAPI32_INC__

IMPORT DsAddressToSiteNamesA, 16
IMPORT DsAddressToSiteNamesExA, 20
IMPORT DsAddressToSiteNamesExW, 20
IMPORT DsAddressToSiteNamesW, 16
IMPORT DsDeregisterDnsHostRecordsA, 20
IMPORT DsDeregisterDnsHostRecordsW, 20
IMPORT DsEnumerateDomainTrustsA, 16
IMPORT DsEnumerateDomainTrustsW, 16
IMPORT DsGetDcCloseW, 4
IMPORT DsGetDcNameA, 24
IMPORT DsGetDcNameW, 24
IMPORT DsGetDcNameWithAccountA, 32
IMPORT DsGetDcNameWithAccountW, 32
IMPORT DsGetDcNextA, 16
IMPORT DsGetDcNextW, 16
IMPORT DsGetDcOpenA, 28
IMPORT DsGetDcOpenW, 28
IMPORT DsGetDcSiteCoverageA, 12
IMPORT DsGetDcSiteCoverageW, 12
IMPORT DsGetForestTrustInformationW, 16
IMPORT DsGetSiteNameA, 8
IMPORT DsGetSiteNameW, 8
IMPORT DsMergeForestTrustInformationW, 16
IMPORT DsRoleAbortDownlevelServerUpgrade, 16
IMPORT DsRoleCancel, 8
IMPORT DsRoleDcAsDc, 60
IMPORT DsRoleDcAsReplica, 64
IMPORT DsRoleDemoteDc, 44
IMPORT DsRoleDnsNameToFlatName, 16
IMPORT DsRoleFreeMemory, 4
IMPORT DsRoleGetDatabaseFacts, 20
IMPORT DsRoleGetDcOperationProgress, 12
IMPORT DsRoleGetDcOperationResults, 12
IMPORT DsRoleGetPrimaryDomainInformation, 12
IMPORT DsRoleIfmHandleFree, 8
IMPORT DsRoleServerSaveStateForUpgrade, 4
IMPORT DsRoleUpgradeDownlevelServer, 48
IMPORT DsValidateSubnetNameA, 4
IMPORT DsValidateSubnetNameW, 4
IMPORT I_BrowserDebugTrace, 8
IMPORT I_BrowserQueryOtherDomains, 16
IMPORT I_BrowserQueryStatistics, 8
IMPORT I_BrowserResetNetlogonState, 4
IMPORT I_BrowserResetStatistics, 4
IMPORT I_BrowserServerEnum, 44
IMPORT I_NetDfsManagerReportSiteInfo, 8
IMPORT I_NetLogonControl2, 20
IMPORT I_NetLogonControl, 16
IMPORT I_NetServerPasswordGet, 28
IMPORT I_NetServerPasswordSet2, 28
IMPORT NetAddAlternateComputerName, 20
IMPORT NetAlertRaise, 12
IMPORT NetAlertRaiseEx, 16
IMPORT NetApiBufferAllocate, 8
IMPORT NetApiBufferFree, 4
IMPORT NetApiBufferReallocate, 12
IMPORT NetApiBufferSize, 8
IMPORT NetAuditClear, 12
IMPORT NetAuditRead, 44
IMPORT NetAuditWrite, 20
IMPORT NetConfigGet, 16
IMPORT NetConfigGetAll, 12
IMPORT NetConfigSet, 28
IMPORT NetConnectionEnum, 32
IMPORT NetDfsAdd, 20
IMPORT NetDfsAddFtRoot, 20
IMPORT NetDfsAddStdRoot, 16
IMPORT NetDfsAddStdRootForced, 16
IMPORT NetDfsEnum, 24
IMPORT NetDfsGetClientInfo, 20
IMPORT NetDfsGetDcAddress, 16
IMPORT NetDfsGetFtContainerSecurity, 16
IMPORT NetDfsGetInfo, 20
IMPORT NetDfsGetSecurity, 16
IMPORT NetDfsGetStdContainerSecurity, 16
IMPORT NetDfsManagerInitialize, 8
IMPORT NetDfsManagerSendSiteInfo, 12
IMPORT NetDfsMove, 12
IMPORT NetDfsRemove, 12
IMPORT NetDfsRemoveFtRoot, 16
IMPORT NetDfsRemoveFtRootForced, 20
IMPORT NetDfsRemoveStdRoot, 12
IMPORT NetDfsSetClientInfo, 20
IMPORT NetDfsSetFtContainerSecurity, 12
IMPORT NetDfsSetInfo, 20
IMPORT NetDfsSetSecurity, 12
IMPORT NetDfsSetStdContainerSecurity, 12
IMPORT NetEnumerateComputerNames, 20
IMPORT NetErrorLogClear, 12
IMPORT NetErrorLogRead, 44
IMPORT NetErrorLogWrite, 32
IMPORT NetFileClose, 8
IMPORT NetFileEnum, 36
IMPORT NetFileGetInfo, 16
IMPORT NetGetAnyDCName, 12
IMPORT NetGetDCName, 12
IMPORT NetGetDisplayInformationIndex, 16
IMPORT NetGetJoinInformation, 12
IMPORT NetGetJoinableOUs, 24
IMPORT NetGroupAdd, 16
IMPORT NetGroupAddUser, 12
IMPORT NetGroupDel, 8
IMPORT NetGroupDelUser, 12
IMPORT NetGroupEnum, 28
IMPORT NetGroupGetInfo, 16
IMPORT NetGroupGetUsers, 32
IMPORT NetGroupSetInfo, 20
IMPORT NetGroupSetUsers, 20
IMPORT NetJoinDomain, 24
IMPORT NetLocalGroupAdd, 16
IMPORT NetLocalGroupAddMember, 12
IMPORT NetLocalGroupAddMembers, 20
IMPORT NetLocalGroupDel, 8
IMPORT NetLocalGroupDelMember, 12
IMPORT NetLocalGroupDelMembers, 20
IMPORT NetLocalGroupEnum, 28
IMPORT NetLocalGroupGetInfo, 16
IMPORT NetLocalGroupGetMembers, 32
IMPORT NetLocalGroupSetInfo, 20
IMPORT NetLocalGroupSetMembers, 20
IMPORT NetLogonGetTimeServiceParentDomain, 12
IMPORT NetMessageBufferSend, 20
IMPORT NetMessageNameAdd, 8
IMPORT NetMessageNameDel, 8
IMPORT NetMessageNameEnum, 28
IMPORT NetMessageNameGetInfo, 16
IMPORT NetQueryDisplayInformation, 28
IMPORT NetRegisterDomainNameChangeNotification, 4
IMPORT NetRemoteComputerSupports, 12
IMPORT NetRemoteTOD, 8
IMPORT NetRemoveAlternateComputerName, 20
IMPORT NetRenameMachineInDomain, 20
IMPORT NetReplExportDirAdd, 16
IMPORT NetReplExportDirDel, 8
IMPORT NetReplExportDirEnum, 28
IMPORT NetReplExportDirGetInfo, 16
IMPORT NetReplExportDirLock, 8
IMPORT NetReplExportDirSetInfo, 20
IMPORT NetReplExportDirUnlock, 12
IMPORT NetReplGetInfo, 12
IMPORT NetReplImportDirAdd, 16
IMPORT NetReplImportDirDel, 8
IMPORT NetReplImportDirEnum, 28
IMPORT NetReplImportDirGetInfo, 16
IMPORT NetReplImportDirLock, 8
IMPORT NetReplImportDirUnlock, 12
IMPORT NetReplSetInfo, 16
IMPORT NetScheduleJobAdd, 12
IMPORT NetScheduleJobDel, 12
IMPORT NetScheduleJobEnum, 24
IMPORT NetScheduleJobGetInfo, 12
IMPORT NetServerComputerNameAdd, 12
IMPORT NetServerComputerNameDel, 8
IMPORT NetServerDiskEnum, 28
IMPORT NetServerEnum, 36
IMPORT NetServerGetInfo, 12
IMPORT NetServerSetInfo, 16
IMPORT NetServerTransportAdd, 12
IMPORT NetServerTransportAddEx, 12
IMPORT NetServerTransportDel, 12
IMPORT NetServerTransportEnum, 28
IMPORT NetServiceControl, 20
IMPORT NetServiceEnum, 28
IMPORT NetServiceGetInfo, 16
IMPORT NetServiceInstall, 20
IMPORT NetSessionDel, 12
IMPORT NetSessionEnum, 36
IMPORT NetSessionGetInfo, 20
IMPORT NetSetPrimaryComputerName, 20
IMPORT NetShareAdd, 16
IMPORT NetShareCheck, 12
IMPORT NetShareDel, 12
IMPORT NetShareDelSticky, 12
IMPORT NetShareEnum, 28
IMPORT NetShareEnumSticky, 28
IMPORT NetShareGetInfo, 16
IMPORT NetShareSetInfo, 20
IMPORT NetStatisticsGet, 20
IMPORT NetUnjoinDomain, 16
IMPORT NetUnregisterDomainNameChangeNotification, 4
IMPORT NetUseAdd, 16
IMPORT NetUseDel, 12
IMPORT NetUseEnum, 28
IMPORT NetUseGetInfo, 16
IMPORT NetUserAdd, 16
IMPORT NetUserChangePassword, 16
IMPORT NetUserDel, 8
IMPORT NetUserEnum, 32
IMPORT NetUserGetGroups, 28
IMPORT NetUserGetInfo, 16
IMPORT NetUserGetLocalGroups, 32
IMPORT NetUserModalsGet, 12
IMPORT NetUserModalsSet, 16
IMPORT NetUserSetGroups, 20
IMPORT NetUserSetInfo, 20
IMPORT NetValidateName, 20
IMPORT NetValidatePasswordPolicy, 20
IMPORT NetValidatePasswordPolicyFree, 4
IMPORT NetWkstaGetInfo, 12
IMPORT NetWkstaSetInfo, 16
IMPORT NetWkstaTransportAdd, 16
IMPORT NetWkstaTransportDel, 12
IMPORT NetWkstaTransportEnum, 28
IMPORT NetWkstaUserEnum, 28
IMPORT NetWkstaUserGetInfo, 12
IMPORT NetWkstaUserSetInfo, 16
IMPORT Netbios, 4
IMPORT NetpDbgPrint
IMPORT NetpNtStatusToApiStatus, 4
IMPORT NetpParmsQueryUserProperty, 16
IMPORT NetpParmsQueryUserPropertyWithLength, 16
IMPORT NetpParmsSetUserProperty, 28
IMPORT NetpParmsSetUserPropertyWithLength, 28
IMPORT NetpParmsUserPropertyFree, 4
IMPORT NetpUpgradePreNT5JoinInfo, 0
IMPORT NlBindingSetAuthInfo, 20
IMPORT RxNetAccessAdd, 16
IMPORT RxNetAccessDel, 8
IMPORT RxNetAccessEnum, 36
IMPORT RxNetAccessGetInfo, 16
IMPORT RxNetAccessGetUserPerms, 16
IMPORT RxNetAccessSetInfo, 20
IMPORT RxRemoteApi

%ifdef UNICODE

%define DsAddressToSiteNames DsAddressToSiteNamesW
%define DsAddressToSiteNamesEx DsAddressToSiteNamesExW
%define DsDeregisterDnsHostRecords DsDeregisterDnsHostRecordsW
%define DsEnumerateDomainTrusts DsEnumerateDomainTrustsW
%define DsGetDcName DsGetDcNameW
%define DsGetDcNameWithAccount DsGetDcNameWithAccountW
%define DsGetDcNext DsGetDcNextW
%define DsGetDcOpen DsGetDcOpenW
%define DsGetDcSiteCoverage DsGetDcSiteCoverageW
%define DsGetSiteName DsGetSiteNameW
%define DsValidateSubnetName DsValidateSubnetNameW

%else  ;// ANSI

%define DsAddressToSiteNames DsAddressToSiteNamesA
%define DsAddressToSiteNamesEx DsAddressToSiteNamesExA
%define DsDeregisterDnsHostRecords DsDeregisterDnsHostRecordsA
%define DsEnumerateDomainTrusts DsEnumerateDomainTrustsA
%define DsGetDcName DsGetDcNameA
%define DsGetDcNameWithAccount DsGetDcNameWithAccountA
%define DsGetDcNext DsGetDcNextA
%define DsGetDcOpen DsGetDcOpenA
%define DsGetDcSiteCoverage DsGetDcSiteCoverageA
%define DsGetSiteName DsGetSiteNameA
%define DsValidateSubnetName DsValidateSubnetNameA

%endif  ;// UNICODE

%endif  ;// __NASMX_NETAPI32_INC__
